package com.niiwoo.civet.trade.dto.response;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by Jaylin on 2017/11/30.
 * 标的详情对应的dto
 */
@Getter
@Setter
@ToString
public class InvestingProjectDTO implements Serializable{

    private static final long serialVersionUID = -5045777006604395230L;

    private Long projectId; //标的ID

	private Byte projectType;// 1:个人极速借 2:机构极速借 3:你我云贷

	private String borrowerUserId;// 借款用户id

    private String borrowerHeadImage; //借款人头像

    private String borrowerNickName; //借款人昵称

    private Byte borrowerGender; //借款人性别:(0、未知 1、男 2、女)

    private Integer borrowerNiiwooScore; //借款人你我分

	private Integer loanTimes = 0; //复借笔数(成功笔数-1)注意：需实时统计

    private String city; //借款人发布借款申请地址市

    private String area; //借款人发布借款申请地址区

    private String publishTime; //发布时间

    private String title; //借款用途

    private BigDecimal borrowRate; //年化利率(10%则返回10)

    private Integer deadline; //期限

    private Byte deadlineUnit; //期数单位(1:月，2:天)

    private BigDecimal contractAmount;  //总金额

    private BigDecimal investingAmount;  //可投金额

    private Integer projectStatus;  //标的状态：1可投，2已抢光

    private Byte creditType; //授信额度类型(0:未知,1:社保,2:芝麻,3:学历,4:融360,5:自有资质,6:融360自有资质,7:信用卡,8:房产证,9:装修项目,10:车辆)

    private Byte borrowerType; // 借款人类型(1:个人，2:企业)

    private BigDecimal interestAddRate;//加息比例
    
    private String interestAddTitle;//加息标题

    private Byte loanType; // 贷款类型(1:社保贷，2:信用卡贷，3:房抵贷，4:车抵贷，5:供应链贷，7：极速贷，9:其他,10:消费贷,11:生意贷)

    private String loanTypeDesc;// 贷款类型(社保贷，信用卡贷，房抵贷，车抵贷，供应链贷，极速贷，其他, 消费贷,生意贷)

    private Byte isMasterBorrower; // 是否主借人?0.否;1.是

    private BigDecimal baseInvestMoney;

    private Byte repaymentType;
    
}
